package journal.cn.lzs.client.queue;


import journal.cn.lzs.client.model.Journal;
import journal.cn.lzs.client.util.Queue;
import org.junit.Test;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2017/4/12/012
 * Time: 9:41
 * To change this template use File | Settings | File Templates.
 * 队列
 */
public class JournalQueue{
    //日志队列
    private static Queue<Journal> JournalQueue=new Queue<Journal>();



    public static Queue<Journal> getJournalQueue() {
        return JournalQueue;
    }

    public static void setJournalQueue(Queue<Journal> journalQueue) {
        JournalQueue = journalQueue;
    }

    /**
     * 队列小demo
     */
    @Test
    public void  a(){
        Queue<Integer> a=new Queue<Integer>();
        a.add(1);
        a.add(2);
        a.add(3);
        a.add(4);
        a.add(5);
        int size=a.size();
        for (int i=0;i<size;i++){
            System.out.println("值"+a.get());
            System.out.println("集合剩余"+a.size());
        }

    }

}
